package com.fingard.dsp.bank.reqrespobj.billpool;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RequestBase;
import com.fingard.dsp.bank.reqrespobj.billpool.Detail.ReqB306PoolAmountQryDetail;
import com.fingard.xml.XmlTextReader;

/*池额度查询
* */
public class ReqB306PoolAmountQry extends RequestBase{
    public ReqB306PoolAmountQryDetail reqDetail = null;
    //集团票据池编号 集团查询时必输
    public String croupbillpoolno;
    //    是否集团查询 0-集团查询 1-非集团，个体账号查询
    public String isGroup;

    private XmlTextReader xmlReader;

    public boolean readRecord() throws Exception {
        reqDetail = null;
        if (xmlReader.read(PATH_Detail)) {
            reqDetail = new ReqB306PoolAmountQryDetail(xmlReader.readedXElement);
            return true;
        } else {
            return false;
        }
    }

    public ReqB306PoolAmountQry(XmlTextReader p_xmlReader, ReqRespHeader p_header) throws Exception {
        reqHeader = p_header;
        xmlReader = p_xmlReader;
        croupbillpoolno = xmlReader.getSimpleText("Croupbillpoolno");
        isGroup = xmlReader.getSimpleText("IsGroup");
    }
}
